﻿--[[
   @brief    descprtion
   @author   rickonzhang
   @version  1.0
   @date     2015-06-10
--]]

friend_tips_desc = 
{
    module_name = "friend_tips",
    events = 
    {
        {
            c_event = 
            {
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_FRIEND_LIST,
                    callback = "friend_tips_control.get_friendlist_done"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_RECVIE_FRIEND_REPORT,
                    callback = "friend_tips_control.recv_friend_report"
                },
            },
            lua_event = 
            {
                {
                    id = group_event.SHOW_FRIEND_TIPS,
                    callback = "friend_tips_control.show"
                },
                {
                    id = group_event.ADD_FRIEND_INTO_FRIEND_LIST,
                    callback = "friend_tips_control.on_add_friend_into_friend_list"
                },
                {
                    id = social_event.LOL_GAME_USER_STATUS_EXCEPTION,
                    callback = "friend_tips_control.handle_lol_user_status_exception"
                },
            },
            lua_file = "social\\friend_tips\\control.lua"
        },
        {
            reg_service = 
            {
                {
                    id = 'i_service_get_friend_played_game_list',
                    callback = "friend_tips_control.service_get_played_game_list"
                },
                {
                    id = 'i_service_is_game_id_in_friend_played_game_list',
                    callback = "friend_tips_control.service_is_game_id_in_friend_played_game_list"
                },
            },
            listen_broadcast = 
            {
                {
                    id = 'i_service_lol_game_status_changed',
                    callback = "friend_tips_control.on_lol_game_staus_changed"
                },
                {
                    id = "i_broadcast_social_info_center_on_lol_player_status_changed",
                    callback = "friend_tips_control.on_lol_event_data_changed"
                },
                {
                    id = "i_broadcast_social_info_center_update_lol_game_status",
                    callback = "friend_tips_control.update_lol_game_status_response"
                },
            },
            lua_file = "social\\friend_tips\\control.lua"
        },
    }
}

desc_mgr.add(friend_tips_desc)